home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Utilities
/
Think Power 1.0B4
/
Extensions Src
/
Hello World.c
next >
Wrap
C/C++ Source or Header
|
1993-12-07
|
414b
|
25 lines
// HelloWorld.c - Written by Stefan Arentz, August 1993
#include "THINK Power Extensions.h"
pascal void main(TPCallbackBlock *theCallbacks, WindowPtr theWindow) {
char *s = "Hello World!\r";
Handle h;
WindowPtr newWindow;
if (newWindow = theCallbacks->NewDocument()) {
if (h = NewHandle(13)) {
BlockMove(s, *h, 13);
(void) theCallbacks->Paste(h);
DisposeHandle(h);
}
}
}